import { get, post } from './index'

export function getChannelList(data) {
  return post('/v1/bk/market/pdparter/gets', data)
}

export function getChannelDetail(data) {
  return post('/v1/bk/market/pdparter/get', data)
}

export function getProvinceList() {
  return get('/v1/bk/market/area/bsprovince/gets')
}

export function getCityList(params) {
  return get('/v1/bk/market/area/bscity/gets', params)
}

export function updateChannel(data) {
  return post('/v1/bk/market/pdparter/update', data)
}

export function addChannel(data) {
  return post('/v1/bk/market/pdparter/add', data)
}

export function getProductList(data) {
  return post('/v1/bk/market/pdpartergoods/list', data)
}

export function getAllProduct(data) {
  return post('/v1/bk/market/pdpartergoods/gets', data)
}

export function getProductDetail(data) {
  return post('/v1/bk/market/pdpartergoods/get', data)
}

export function updateProduct(data) {
  return post('/v1/bk/market/pdpartergoods/update', data)
}

export function addProduct(data) {
  return post('/v1/bk/market/pdpartergoods/add', data)
}

export function setProductStatus(data) {
  return post('/v1/bk/market/pdpartergoods/status-update', data)
}
